
package czk.jvm.lecture.memory;

public class MyTest4 {
    private int length;
    public int getLength(){
        return length;
    }
    public void test(){
        length++;
        this.test();
    }

    public static void main(String[] args) {
        MyTest4 myTest4=new MyTest4();
        try {
            myTest4.test();
        }catch (Throwable throwable){
            System.out.println(myTest4.getLength());
            throwable.printStackTrace();
        }
    }
}
